package com.qytx.tloos;

import java.io.File;
import java.io.IOException;

public class NewFile {

	public static void createFile(String path,String name){
		System.out.println("path:"+path);
		File folder=new File(path);
		if(!folder.exists()){
			folder.mkdirs();
		}
		File file=new File(path,name);
		try {
			file.createNewFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}
